#encoding='gbk'


import unittest

import random

class TestFunctions(unittest.TestCase):
    def setUp(self):
        self.seq= list(range(10))
        print('ready')
    def test_run1(self):
        element=random.choice(self.seq)
        self.assertTrue(element in self.seq)
        #assert 1==1
    def test_sth(self):
        assert 1==2
    def tearDown(self):
        print('\nDone!')
class TestFunctions2(unittest.TestCase):
    def setUp(self):
        self.seq= list(range(10))
        print(1,'ready')
    def test_shuffle(self):
        random.shuffle(self.seq)
        self.seq.sort()
        self.assertEqual(self.seq,list(range(10)))
        self.assertRaises(TypeError,random.shuffle,(1,2,3))

if __name__=='__main__':
    unittest.main()